import request from '@/utils/request'


export function getList(data) {
  return request({
    url: '/user/hospital',
    method: 'get',
    params: data
  })
}

export function addHospital(data) {
  return request({
    url: '/user/hospital/',
    method: 'post',
    data
  })
}

export function updateHospital(data, id) {
  return request({
    url: '/user/hospital/' + id,
    method: 'put',
    data
  })
}
